<ul [ngStyle]="{'background-color': backgroundColor}">
  <li *ngFor="let menu of menus; let i = index">
    <a [ngStyle]="{color: menu.link === selectedTabLink ? titleActiveColor : titleColor}"
       (click)="handleSelection(i)"
    >{{menu.title}}</a>
    <span class="indicator"
          [ngStyle]="{'background-color': indicatorColor}"
          *ngIf="menu.link === selectedTabLink"></span>
  </li>
</ul>
<!--让组件支持内容嵌套-->
<ng-content></ng-content>
